package cn.com.pushworld.examination.ui.module;

import java.util.EventObject;

import javax.swing.tree.DefaultMutableTreeNode;

import cn.com.pushworld.examination.to.bean.BeanTreeNodeBean;

public class BeanTreeSelectionEvent extends EventObject {

	private static final long serialVersionUID = 4269045437595812470L;

	public BeanTreeSelectionEvent(Object source) {
		super(source);
	}

	public DefaultMutableTreeNode getDefaultMutableTreeNode() {
		return (DefaultMutableTreeNode) this.getSource();
	}

	public BeanTreeNodeBean getBTNBean() {
		return (BeanTreeNodeBean) getDefaultMutableTreeNode().getUserObject();
	}
}
